<include file="Public:header" />
<script>
$(document).ready(function(e) {
    $('.showcurimg').each(function(index, element) {
        $(this).click(function(e) {
            $(this).find('img.img').show();
        });
		$(this).mouseleave(function(e) {
            $(this).find('img.img').hide();
        });
    });
});
</script>	
<div class="container main"> <include file="Public:left" />
  <div class="w790">
      <div class="h">
        <if condition="getAccessMenu($accessList, 'Admin', 'Member_account_log', 'add')"><a href="{:U('add', array('member_id' => $member_id))}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>调节账户</a>
        </if>
        <if condition="$myLevel == 1">
          <a href="{:U('index', array('stype' => 0))}" class="btn btn-info">营业收益</a>
          <a href="{:U('index', array('stype' => 1))}" class="btn btn-info">推荐收益</a>
        </if>
          <form action="" method="get" class="fr form-inline" id="myform">
              <input type="hidden" name="pagesize" value="">
              变动时间：<input class="form-control" type="text" onclick="WdatePicker();" name="time" value="{$time}" />
              <input type="text" name="keywords" placeholder="输入搜索关键词" class="form-control" value="">
              <button type="submit" class="btn btn-default">搜索</button>
              <input type="hidden" name="__hash__" value="67eb9ca8adfa9218a7fbf2d9df50f058_e3ca1a985c3fe29054d282f8daef8f87">
          </form>
      </div>
    
    <div class="table_">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <thead>
          <tr>
            <td width="17%" align="center"><a href="{:U('index', array('member_id' => $_GET['member_id'],'sortField' => 'changenum', 'sortType' => $sortType))}">变动值</a></td>
            <td width="18%" align="center">变动原因</td>
            <td align="center"><a href="{:U('index', array('member_id' => $_GET['member_id'],'sortField' => 'dateline', 'sortType' => $sortType))}">变动时间</a></td>
              <td width="18%" align="center">订单号</td>
              <td width="18%" align="center">订单总金额</td>
            <td align="center">操作人</td> 
          </tr>
        </thead>
        <volist name="list" id="vo">
          <tr class="data_list"> 
            <td align="center" {$vo.id}>{$vo.changenum}</td>
            
            <td align="center">
            <notempty name="vo['img_url']"><a class="showcurimg" href="javascript:void(0);">
            <img src="{:getThumbPath($vo['img_url'])}" style="width:200px; position:absolute; margin-top:0px; display:none;" class="img" /></a></notempty>
            
            {$vo.remark}</td>
            <td align="center">{:date('Y-m-d H:i:s', $vo['dateline'])}</td>
              <td align="center">{$vo.ordernumber}</td>
              <td align="center">{$vo.total}</td>
           
            <td align="center">{:getAdminName($vo['user_id'])}</td>
          </tr>
        </volist>
      </table>
      <div class="pages">
        
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />